import request from '../utils/request'

export function getList(params) {
  return request.ajax({
      url: `/collect/list`,
      method: 'post',
      params
  })
} 
export function add(params) {
  return request.ajax({
      url: `/collect/add`,
      method: 'post',
      params
  })
} 
export function delCollect(ids) {
  return request.ajax({
      url: `/collect/del/${ids}`,
      method: 'post'
  })
} 

export function query(busId,type) {
  return request.ajax({
      url: `/collect/query/${busId}/${type}`,
      method: 'post',
  })
} 
export function getFootList(params) {
  return request.ajax({
      url: `/footPrint/list`,
      method: 'post',
      params
  })
} 

export function addFoot(params) {
  return request.ajax({
      url: `/footPrint/add`,
      method: 'post',
      params
  })
} 
export function delFoot(ids) {
  return request.ajax({
      url: `/footPrint/del/${ids}`,
      method: 'post',
  })
} 
